package ginplus

import (
	"gitee.com/hongzhaomin/hzm-common-go/concurrent"
	"sync/atomic"
)

var userGoroutineLocal atomic.Pointer[concurrent.GoroutineLocal[any]]

func init() {
	userGoroutineLocal.Store(concurrent.NewGoroutineLocal[any]())
}

func GetUserGoroutineLocal() *concurrent.GoroutineLocal[any] {
	return userGoroutineLocal.Load()
}
